﻿@ECHO OFF
SET SOLUTIONNAME=Community.SharePoint.PdfIcon.wsp
SET FEATURENAME=Community.SharePoint.PdfIcon
SET STSADM=%PROGRAMFILES%\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe

"%STSADM%" -o addsolution -filename %SOLUTIONNAME%
"%STSADM%" -o deploysolution -name %SOLUTIONNAME% -immediate -allowgacdeployment
"%STSADM%" -o execadmsvcjobs

rem On multi-server farms, you may need to wait until 
rem deployment has finished on all servers before running this next cmd:
"%STSADM%" -o activatefeature -name %FEATURENAME%
iisreset /noforce
